
import 'dart:collection';

import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:my_flutter_module/login_page.dart';

class Playground extends StatefulWidget {
  const Playground({super.key});

  @override
  State<Playground> createState() => _PlaygroundState();
}

class _PlaygroundState extends State<Playground> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
          centerTitle: true,
          title: const Text(
            '测试页面',
            style: TextStyle(fontSize: 20, color: Color(0xff333333)),
          ),
        ),
        body: Column(
          children: [
              ElevatedButton(onPressed: (){
                Fluttertoast.showToast(msg: "跳转页面");
                Navigator.of(context).push(
                  MaterialPageRoute(builder: (context)=>LoginPage(new HashMap()))
                );
              }, child: Text("登录页面"))
          ],
        ),
    );
  }
}